package operation;

import book.Book;
import book.BookList;
import jdk.swing.interop.SwingInterOpUtils;

public class ShowOperation implements Ioperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("显示图书");
        int currentsize=bookList.getUseSize();
        for(int i=0;i<currentsize;i++){
            Book book=bookList.getbook(i);
            System.out.println(book);

        }

    }
}
